<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

// Route::get('/', function () {
//     return view('welcome');
// });
//后台登录路由
Route::controller("/admin/login","Admin\LoginController");
//后台进入控制器
Route::get('/admin','Admin\AdminController@index');
//后台商品管理入口
Route::controller('/admin/goods','Admin\GoodsController');
//后台分类模块入口
Route::controller('/admin/cate','Admin\CateController');
// Route::controller('home','Home\HomeController');
//输入域名直接访问前台主页的控制器
Route::get('/','Home\HomeController@index');

//前台和后台用户模块入口
Route::controller('/admin/user', 'Admin\UserController');

//后台网站设置管理入口
Route::controller("/admin/confg","Admin\WebconfgController");

//友情链接入口
Route::controller('/admin/friendlink', 'Admin\FriendlinkController');

// 2017-02-17之后路由分割线
//后台的商品活动路由
Route::controller('/admin/goodsaction','Admin\GoodsActionController');

//后台推荐商品入口
Route::controller('/admin/goodsrecom','Admin\GoodsRecomController');
//前台主页商品的展示路由

//  前台用户中心
Route::controller('/home/user', 'Home\UserController');
// 2017/2/18

//前台登录注册路由
Route::controller("/home/login","Home\LoginController");
// Route::controller("/home/register","Home\LoginController");


//验证码路由
Route::get("/code","CodeController@index");

//sunhong 商品详情后台
Route::controller('/admin/goodsdetail','Admin\GoodsDetailController');
//sunhong 商品详情前台
Route::controller('/home/goodsdetail','Home\GoodsDetailController');


// xiaoyu  个人资料路由
Route::controller('home/information','Home\InformationController');

//2017/2/20
Route::controller('/home/goodssearch','Home\GoodsSearchController');
Route::controller('home/goodscar','Home\GoodsCarController');

// 2.21 xiaoyu 安全问题，密码修改设置
Route::controller('home/safety',"Home\SafetyController");

// 忘记密码路由
Route::controller('/home/forgetpwd','Home\forgetpwdController');

//方文鹏  收货地址路由
Route::controller('/home/address','Home\AddressController');


//f方文鹏 订单管理路由(未完成)
Route::controller('/home/order','Home\OrderController');
//f方文鹏 物品收藏路由(未完成)  未写删除  找相似
Route::controller('/home/house','Home\HouseController');
//f方文鹏 物品足迹路由(未完成) 未写删除  找相似
Route::controller('/home/foot','Home\FootController');
//f方文鹏 物品评价路由(未完成) 未写删除  找相似
Route::controller('/home/appraise','Home\AppraiseController');

//方文鹏 后台物流管理模块
Route::controller('/admin/logistics','Admin\LogisticsController');
//方文鹏 后台支付方式管理模块
Route::controller('/admin/paymethod','Admin\PaymethodController');
//方文鹏 后台订单管理路由
Route::controller('/admin/order','Admin\OrderController');


//方文鹏   前台支付界面路由
Route::controller('/home/pay','Home\PayController');

Route::controller('/home/asset','Home\AssetController');

// 2.24 小雨 账户安全  支付密码  手机验证  邮箱验证  实名认证
Route::controller('/home/safety2','Home\Safety2Controller');

// // 中间件路由组
// Route::group(['middleware' => 'login'],function(){
// 	//输入域名直接访问前台主页的控制器
// 	Route::get('/',function(){
		
// 	});
// })